//下
fetch("http://101.200.226.244:3000/personalized/newsong",{
  method:"get",
  mode:"cors"
})
.then (r=>r.json())
 
.then(function(data){
  //console.log(data.result)
   //data.result 是一个数组
   let string=""
   data.result.forEach(function(value){
        string+=
        `
        <a href="playsong.html?ids=${value.id}"> 
            <li>
               <h4>${value.name}<span>${value.song.alias}</span></h4>
               <p>${value.song.artists[0].name} - ${value.song.name}</p>
            </li> 
         </a>
        `

        })
        if($(".new_song>ul")){

           $(".new_song>ul").innerHTML=string
        }else{

           $(".new_song>ol").innerHTML=string
        }
})
/* <li>
<p>${value.name}<font size="3">${value.song.alias}<font></p>
<p><font size="2">${value.song.artists[0].name}+${value.song.name}<font></p>
</li>  */